# _*_ coding : UTF-8 _*_
# @Time : 2023/9/27 15:42
# @Author : 森
# @File : demo1
# @Project : python_25-g3-z_test


import numpy as np

print("hehe")

arr1 = np.array([[1, 2], [3, 4]])
print(arr1)
print(arr1.dtype)
print(arr1.shape)

# 元素访问
for i in arr1:
    print(i)

arr1 = arr1.flatten()
print(arr1)
print(arr1[np.array([2, 3])])
print(arr1 > 3)
print(arr1[arr1 > 3])

arr2 = np.arange(16)
print(arr2)
arr3 = np.ones([2, 3])
print(arr3)
arr4 = np.eye(3, 3,)
print(arr4)
arr5 = np.random.randn(5,4)
print(arr5)
arr6 = np.empty([8,4],dtype=np.int_)
for i in range(8):
    arr6[i] = i

print(arr6)

import torch